<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>对象的添加和删除</title>
</head>

<body>

    <div></div>
    <script>
        var lang = "language"
        var person = {
            hair: 'black',
            skin: 'yellow',
            nationallity: 'France',
        }
        person[lang] = 'Chinese';
        delete (person.nationallity);
        console.log(person)
            

    </script>
</body>

</html>